﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SuperX.DataCenterService.MomAPI.Model
{
    public class Result
    {
        /// <summary>
        ///
        /// </summary>
        public object data { get; set; }

        /// <summary>
        ///
        /// </summary>
        public Context context { get; set; }
    }

    public class Response : BaseResponse<Result>
    {
    }

    public class FileResponse : BaseResponse<FileMsg>
    {
    }

    // 定义文件信息类
    public class FileMsg
    {
        public string filename { get; set; }
        public long size { get; set; }
        public string file_type { get; set; }
        public string name { get; set; }
        public string mimetype { get; set; }
        public string id { get; set; }
    }

    public class BaseResponse<T>
    {
        /// <summary>
        ///
        /// </summary>
        public string id { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string jsonrpc { get; set; }

        /// <summary>
        ///
        /// </summary>
        public T result { get; set; }
    }
}